home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-07-22 | 1.0 KB | 50 lines | [TEXT/TCEd] |
- #
- # WriteOpen
- #
- # Last Modified: Friday, June 27, 1991 at 11:46 PM
- # Macro Files for Preditor
- #
- # Writes a list of "Open…" commands which can be executed
- # the next time Preditor starts. Targets a file called
- # "Preditor.resume".
- #
- # To Install:
- #
- # 1) Create an empty file called Preditor.resume
- #
- # 2) Add the line:
- #
- # ":Preditor Folder:Preditor.resume"()
- #
- # to the end of the Predior.startup file.
- #
- # 3) Also add:
- #
- # AddMenu "Quit" 32 1
- # WriteOpen()
- # EndMenu
- #
- # to the Preditor.startup file (or any .startup file)
- #
- # Command-Q will now run WriteOpen, which saves the list
- # of open files and quits. When Preditor starts up again
- # the files that were open will be opened again.
- #
- # © Copyright Evatac Software 1988-1991
- # All rights reserved
- #
-
- resumeFile = "Preditor.resume"
-
- Open(~Preditor + resumeFile, "a")
-
-
- Clear(•:∞, resumeFile)
- Insert("### Preditor Resume Macro\n\n", §, resumeFile)
- For (file, ~Windows)
- Insert("Open(\"" + file + "\")\n", §, resumeFile)
- End
-
- Close("y", resumeFile)
- Quit("")
-